strcasecmp -> case_ignore_strcmp
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 3 Aug 2005 16:58:26 +0000 (16:58 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 3 Aug 2005 16:58:26 +0000 (16:58 +0000)
gpsbabel/csv_util.c
gpsbabel/gpx.c

index 70cfd8c33bd92b49439b9d6820c9cc89119680ce..263d4f95c905c13df5b56644ab7767fe3b2cf6af 100644 (file)
@@ -911,11 +911,11 @@ xcsv_parse_val(const char *s, waypoint *wpt, const field_map_t *fmp)
     if (strcmp(fmp->key, "GPS_FIX") == 0) {
        wpt->fix = atoi(s)-1;
        if ( wpt->fix < fix_2d) {
-       if (!strcasecmp(s, "none"))
+       if (!case_ignore_strcmp(s, "none"))
                wpt->fix = fix_none;
-       else if (!strcasecmp(s, "dgps"))
+       else if (!case_ignore_strcmp(s, "dgps"))
                wpt->fix = fix_dgps;
-       else if (!strcasecmp(s, "pps"))
+       else if (!case_ignore_strcmp(s, "pps"))
                wpt->fix = fix_pps;
        else
                wpt->fix = fix_unknown;
index 36cdb849306fc610956c80f0bb0364e5bd7a7d3e..8374d927c4270153d75c18ef0f0a532d439b5d1e 100644 (file)
@@ -839,11 +839,11 @@ gpx_end(void *data, const char *el)
        case tt_fix:
                wpt_tmp->fix = atoi(cdatastrp)-1;
                if ( wpt_tmp->fix < fix_2d) {
-                       if (!strcasecmp(cdatastrp, "none"))
+                       if (!case_ignore_strcmp(cdatastrp, "none"))
                                wpt_tmp->fix = fix_none;
-                       else if (!strcasecmp(cdatastrp, "dgps"))
+                       else if (!case_ignore_strcmp(cdatastrp, "dgps"))
                                wpt_tmp->fix = fix_dgps;
-                       else if (!strcasecmp(cdatastrp, "pps"))
+                       else if (!case_ignore_strcmp(cdatastrp, "pps"))
                                wpt_tmp->fix = fix_pps;
                        else
                                wpt_tmp->fix = fix_unknown;